import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        gqlString : "",
        gqlData : {}
    },
    mutations: {
        addGql(state, string) {
            state.gqlString += string
        },
        setGqlData(state, data) {
            state.gqlData = data
        }
    },
    actions: {

    }
})

export default store
